<!DOCTYPE html>
<html>
<head>
    <title>作者列表</title>
</head>
<body>
    <h1>作者列表</h1>
    <ul>
        {% for author in authors %}
            <li><a href="{% url 'author_detail' author.id %}">{{ author.name }}</a></li>
        {% empty %}
            <li>暂无作者</li>
        {% endfor %}
    </ul>
    <a href="{% url 'home' %}">返回主页</a>
</body>
</html>